package plan;

import java.io.Serializable;
import java.util.Map;

public class HttpRequest implements Serializable {
    String htp;
    String ip;
    String port;
    String url;
    String fuc;  //get or post
    String path;  // 路径
    String encoding;  // 编码格式
    String param; //同请求一起发送的参数
    Map<String, String> nameAndValue;

    public HttpRequest(String htp, String ip, String port, String url, String fuc, String path, String encoding, String param, Map<String, String> nameAndValue) {
        this.htp = htp;
        this.ip = ip;
        this.port = port;
        this.url = url;
        this.fuc = fuc;
        this.path = path;
        this.encoding = encoding;
        this.param = param;
        this.nameAndValue = nameAndValue;
    }

    public String getHtp() {
        return htp;
    }

    public void setHtp(String htp) {
        this.htp = htp;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPost(String port) {
        this.port = port;
    }

    public Map<String, String> getNameAndValue() {
        return nameAndValue;
    }

    public void setNameAndValue(Map<String, String> nameAndValue) {
        this.nameAndValue = nameAndValue;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFuc() {
        return fuc;
    }

    public void setFuc(String fuc) {
        this.fuc = fuc;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }
}
